package services

import (
	"context"
	. "go-kit/grpc/pd"
)

//声明结构
type UserInfoServer struct{}

//重构方法
func (this *UserInfoServer) UserList(context.Context, *Request) (*ResultList, error) {

	result := []*Response{
		&Response{
			UserId: 1,
		},
		&Response{
			UserId: 2,
		},
		&Response{
			UserId: 3,
		}, &Response{
			UserId: 4,
		},
	}

	return &ResultList{ResultList: result}, nil

}
